package com.bean.library;

import java.util.ArrayList;

public class Course {
	String courseId;
	String courseName;
	ArrayList<Paper> briefPaperList=null;
	Paper examPaper;
	int startIndex;//前台所需
	
	public int getStartIndex() {
		return startIndex;
	}
	public void setStartIndex(int startIndex) {
		this.startIndex = startIndex;
	}
	public Course(){
		this.startIndex = 0;
	}
	public Course(String courseId,String courseName){
		this.courseId = courseId;
		this.courseName = courseName;
	}
	public String getCourseId() {
		return courseId;
	}
	public void setCourseId(String courseId) {
		this.courseId = courseId;
	}
	public String getCourseName() {
		return courseName;
	}
	public void setCourseName(String courseName) {
		this.courseName = courseName;
	}
	public ArrayList<Paper> getBriefPaperList() {
		return briefPaperList;
	}
	public void setBriefPaperList(ArrayList<Paper> briefPaperList) {
		this.briefPaperList = briefPaperList;
	}
	public Paper getExamPaper() {
		return examPaper;
	}
	public void setExamPaper(Paper examPaper) {
		this.examPaper = examPaper;
	}
	public ArrayList<Paper> getBriefPaperList(int beginIndex,int pageCount){
		ArrayList<Paper> paperList = new ArrayList<Paper>();
		int paperCount = briefPaperList.size();
		for(int i = beginIndex;i<beginIndex+pageCount&&i<paperCount;i++){
			paperList.add(briefPaperList.get(i));
		}
		return paperList;
	}
}
